import request from '@/utils/request'

// 批量新增产品能力绑定
export function productClientTestBatchAddBind(data) {
  return request({
    url: '/produce/product-client-test-bind/batch-insert',
    method: 'post',
    data: data
  })
}

// 批量修改产品能力绑定
export function productClientTestBatchUpdateBind(data) {
  return request({
    url: '/produce/product-client-test-bind/batch-update',
    method: 'post',
    data: data
  })
}

// 根据productCode查询产品能力绑定
export function getProductTestItemByProductCode(query) {
  return request({
    url: '/produce/product-client-test-bind/get-by-product-code-or-addr',
    method: 'get',
    params: query
  })
}

// 查询产品测试项目绑定列表
export function listProductClientTestBind(query) {
  return request({
    url: '/produce/product-client-test-bind/list',
    method: 'get',
    params: query
  })
}



// 查询产品测试项目绑定详细
export function getProductClientTestBind(id) {
  return request({
    url: '/produce/product-client-test-bind/' + id,
    method: 'get'
  })
}

// 新增产品测试项目绑定
export function addProductClientTestBind(data) {
  return request({
    url: '/produce/product-client-test-bind',
    method: 'post',
    data: data
  })
}

// 修改产品测试项目绑定
export function updateProductClientTestBind(data) {
  return request({
    url: '/produce/product-client-test-bind',
    method: 'put',
    data: data
  })
}

// 删除产品测试项目绑定
export function delProductClientTestBind(ids) {
  return request({
    url: '/produce/product-client-test-bind/' + ids,
    method: 'delete'
  })
}

// 逻辑删除产品测试项目绑定
export function removedProductClientTestBind(id) {
  return request({
    url: '/produce/product-client-test-bind/' + id,
    method: 'delete'
  })
}
